package com.example.forUse;

import java.util.Arrays;

/**
 * 多层for循环，如何跳出到指定层
 */
public class ForUse {
    public static void main(String[] args) {
        int arr[] = new int[3];
        for (int i = 0; i < 3; i++) {
            fj:for (int j = 0; j < 10; j++) {
                for(int k = 0; k < 10; k++) {
                    arr[i] = ++arr[i];
                    break fj;
                }
            }
        }
        System.out.println(Arrays.toString(arr));
    }
}
